import { createRouter, createWebHashHistory } from 'vue-router'
const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/import',
      name: 'data',
      component: () => import('@renderer/views/data_import/index.vue')
    },
    {
      path: '/named',
      name: 'named',
      component: () => import('@renderer/views/named/index.vue')
    },
    {
      path: '/',
      name: 'overview',
      component: () => import('@renderer/views/overview/index.vue')
    }

    // //坐标拾取
    // {
    //   path: '/map',
    //   name: 'map',
    //   // route level code-splitting
    //   // this generates a separate chunk (About.[hash].js) for this route
    //   // which is lazy-loaded when the route is visited.
    //   component: () => import('@/views/map/gather/index.vue')
    // },
    // //停车地点
    // {
    //   path: '/parking',
    //   name: 'parking',
    //   // route level code-splitting
    //   // this generates a separate chunk (About.[hash].js) for this route
    //   // which is lazy-loaded when the route is visited.
    //   component: () => import('@/views/map/parking/index.vue')
    // }
  ]
})

export default router
